package org.springframework.example.aop.service;

import org.springframework.stereotype.Component;

@Component
public class AccountService {

	public void test(){
		System.out.println("test...");
	}

	public void test(String a,String b){
		System.out.println("test..."+ a +" "+b);
	}


	public void test2(int a){
		System.out.println("test2");
		if(a < 10 ){
			throw new NullPointerException("a null");
		}if(a > 10 && a < 100){
			throw new IllegalArgumentException("a illegal");
		}
	}
}
